
#include "Common.hpp"
#include "UdpClient.hpp"


int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        std::cerr << "usage fail " << "Usage:" << argv[0] << "serverIp serverPort" << std::endl;
        Die(USE_ERR);
    }

    //使用ip与port构建UdpClient对象的指针
    std::shared_ptr<UdpClient> c_ptr = std::make_shared<UdpClient>(argv[1],argv[2]);
    c_ptr->Start();
    return 0;
}